Optimal. Leaf size=248 \[ -\frac {(15 A+7 C) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}+\frac {(49 A+25 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{10 a d \sqrt {a \sec (c+d x)+a}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.70, antiderivative size = 248, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.135, Rules used = {4085, 4022, 4013, 3808, 206} \[ -\frac {(15 A+7 C) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a \sec (c+d x)+a)^{3/2}}+\frac {(49 A+25 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{10 a d \sqrt {a \sec (c+d x)+a}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3808
Rule 4013
Rule 4022
Rule 4085
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{\sec ^{\frac {5}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}} \, dx &=-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}-\frac {\int \frac {-\frac {1}{2} a (9 A+5 C)+a (3 A+C) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{2 a^2}\\ &=-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {\int \frac {\frac {3}{4} a^2 (13 A+5 C)-a^2 (9 A+5 C) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{5 a^3}\\ &=-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}-\frac {2 \int \frac {-\frac {3}{8} a^3 (49 A+25 C)+\frac {3}{4} a^3 (13 A+5 C) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{15 a^4}\\ &=-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(49 A+25 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{10 a d \sqrt {a+a \sec (c+d x)}}-\frac {(15 A+7 C) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx}{4 a}\\ &=-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(49 A+25 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{10 a d \sqrt {a+a \sec (c+d x)}}+\frac {(15 A+7 C) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{2 a d}\\ &=-\frac {(15 A+7 C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(A+C) \sin (c+d x)}{2 d \sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^{3/2}}+\frac {(9 A+5 C) \sin (c+d x)}{10 a d \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {(13 A+5 C) \sin (c+d x)}{10 a d \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {(49 A+25 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{10 a d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 5.48, size = 331, normalized size = 1.33 \[ \frac {(\sec (c+d x)+1)^{3/2} \left (A+C \sec ^2(c+d x)\right ) \left (\frac {2 \left (\sin \left (\frac {3}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) \sec ^3\left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)+1} ((39 A+20 C) \cos (c+d x)-2 A \cos (2 (c+d x))+A \cos (3 (c+d x))+47 A+25 C)}{\sec ^{\frac {3}{2}}(c+d x)}-5 \sqrt {2} (15 A+7 C) \cos ^2(c+d x) \sqrt {\tan ^2(c+d x)} \cot (c+d x) \left (\log \left (-3 \sec ^2(c+d x)-2 \sec (c+d x)-2 \sqrt {2} \sqrt {\tan ^2(c+d x)} \sqrt {\sec (c+d x)+1} \sqrt {\sec (c+d x)}+1\right )-\log \left (-3 \sec ^2(c+d x)-2 \sec (c+d x)+2 \sqrt {2} \sqrt {\tan ^2(c+d x)} \sqrt {\sec (c+d x)+1} \sqrt {\sec (c+d x)}+1\right )\right )\right )}{40 d (a (\sec (c+d x)+1))^{3/2} (A \cos (2 (c+d x))+A+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 488, normalized size = 1.97 \[ \left [\frac {5 \, \sqrt {2} {\left ({\left (15 \, A + 7 \, C\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (15 \, A + 7 \, C\right )} \cos \left (d x + c\right ) + 15 \, A + 7 \, C\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} + 2 \, \sqrt {2} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + \frac {4 \, {\left (4 \, A \cos \left (d x + c\right )^{4} - 4 \, A \cos \left (d x + c\right )^{3} + 4 \, {\left (9 \, A + 5 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (49 \, A + 25 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{40 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}}, \frac {5 \, \sqrt {2} {\left ({\left (15 \, A + 7 \, C\right )} \cos \left (d x + c\right )^{2} + 2 \, {\left (15 \, A + 7 \, C\right )} \cos \left (d x + c\right ) + 15 \, A + 7 \, C\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )}}{a \sin \left (d x + c\right )}\right ) + \frac {2 \, {\left (4 \, A \cos \left (d x + c\right )^{4} - 4 \, A \cos \left (d x + c\right )^{3} + 4 \, {\left (9 \, A + 5 \, C\right )} \cos \left (d x + c\right )^{2} + {\left (49 \, A + 25 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{20 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + A}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 3.47, size = 328, normalized size = 1.32 \[ -\frac {\sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-1+\cos \left (d x +c \right )\right ) \left (75 A \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right ) \sin \left (d x +c \right )-8 A \left (\cos ^{4}\left (d x +c \right )\right )+35 C \sin \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )+75 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, A \sin \left (d x +c \right )+16 A \left (\cos ^{3}\left (d x +c \right )\right )+35 C \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )-80 A \left (\cos ^{2}\left (d x +c \right )\right )-40 C \left (\cos ^{2}\left (d x +c \right )\right )-26 A \cos \left (d x +c \right )-10 C \cos \left (d x +c \right )+98 A +50 C \right ) \left (\cos ^{3}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}}}{20 d \sin \left (d x +c \right )^{3} a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________